<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>商城后台</title>
        <meta name="keywords"  />
        <meta name="description"  />
		<link rel="stylesheet" type="text/css" href="/shopping/Public/layui/css/layui.css" />
		<link rel="stylesheet" type="text/css" href="/shopping/Public/bootstrap/css/bootstrap.css" />
		<link rel="stylesheet" type="text/css" href="/shopping/Public/Admin/Css/identify.css" />
		<link rel="stylesheet" type="text/css" href="/shopping/Public/Admin/Css/layout.css" />
		<link rel="stylesheet" type="text/css" href="/shopping/Public/Admin/Css/account.css" />
		<link rel="stylesheet" type="text/css" href="/shopping/Public/Admin/Css/style.css" />
		<link rel="stylesheet" type="text/css" href="/shopping/Public/Admin/Css/control_index.css" />
		<script type="text/javascript" src="/shopping/Public/Admin/Js/jquery-1.7.2.min.js"></script>
		<script type="text/javascript" src="/shopping/Public/layui/layui.js"></script>
		<script type="text/javascript" src="/shopping/Public/Admin/Js/layer/layer.js"></script>
		<script type="text/javascript" src="/shopping/Public/Admin/Js/haidao.offcial.general.js"></script>
		<script type="text/javascript" src="/shopping/Public/Admin/Js/select.js"></script>
		<script type="text/javascript" src="/shopping/Public/Admin/Js/haidao.validate.js"></script>
	</head>

	<body>
		<div class="view-topbar">
			<div class="topbar-console">
				<div class="tobar-head fl">
					<a href="#" class="topbar-logo fl">
					<span><img src="/shopping/Public/Admin/Images/logo.png" width="20" height="20"/></span>
					</a>
					<a href="<?php echo U('Index/index');?>" class="topbar-home-link topbar-btn text-center fl"><span>管理控制台</span></a>
				</div>
			</div>
			<div class="topbar-info">
				<ul class="fr">
					<li class="fl dropdown topbar-notice topbar-btn">
					<a href="#" class="dropdown-toggle">
					<span class="icon-notice"></span>

					<!--have表示有消息，没有消息去掉have-->
					</a>
					</li>
					<li class="fl dropdown topbar-notice topbar-btn">
						<a href="/shopping" class="topbar-btn"><span class="fl text-normal">前台首页</span></a>
					</li>

					<li class="fl topbar-info-item">
					<div class="dropdown">
						<a href="#" class="topbar-btn">
						<span class="fl text-normal"><?php echo (session('admin')); ?></span>
						<span class="icon-arrow-down"></span>
						</a>
						<ul class="dropdown-menu">
							<li><a href="<?php echo U('Login/loginout');?>">退出</a></li>
						</ul>
					</div>
					</li>
				</ul>
			</div>
		</div>
		<div class="view-body">
			<div class="view-sidebar">
				<div class="sidebar-content">
					<div class="sidebar-nav sidebar-nav-fold">
						<div class="sidebar-title">
							<a href="#">
								<span class="icon"><b class="fl icon-arrow-down"></b></span>
								<span class="text-normal">用户管理</span>
							</a>
						</div>
						<ul class="sidebar-trans"style="overflow: hidden; display: none;" >
							<li>
								<a href="<?php echo U('User/index');?>">
									<b class="sidebar-icon"><img src="/shopping/Public/Admin/Images/icon_order.png" width="16" height="16" /></b>
									<span class="text-normal">用户列表</span>
								</a>
							</li>
							<li>
								<a href="<?php echo U('User/admin_index');?>">
									<b class="sidebar-icon"><img src="/shopping/Public/Admin/Images/icon_order.png" width="16" height="16" /></b>
									<span class="text-normal">管理员列表</span>
								</a>
							</li>
							<li>
								<a href="<?php echo U('User/add');?>">
									<b class="sidebar-icon"><img src="/shopping/Public/Admin/Images/icon_order.png" width="16" height="16" /></b>
									<span class="text-normal">添加用户</span>
								</a>
							</li>
							<li>
								<a href="<?php echo U('User/admin_add');?>">
									<b class="sidebar-icon"><img src="/shopping/Public/Admin/Images/icon_order.png" width="16" height="16" /></b>
									<span class="text-normal">添加管理员</span>
								</a>
							</li>
						</ul>
					</div>
					<div class="sidebar-nav sidebar-nav-fold">
						<div class="sidebar-title">
							<a href="#">
								<span class="icon"><b class="fl icon-arrow-down"></b></span>
								<span class="text-normal">产品管理</span>
							</a>
						</div>
						<ul class="sidebar-trans"style="overflow: hidden; display: none;">
							<li>
								<a href="<?php echo U('Goods/index');?>">
								<b class="sidebar-icon"><img src="/shopping/Public/Admin/Images/icon_order.png" width="16" height="16" /></b>
								<span class="text-normal">产品列表</span>
								</a>
							</li>
							<li>
								<a href="#">
									<b class="sidebar-icon"><img src="/shopping/Public/Admin/Images/icon_order.png" width="16" height="16" /></b>
									<span class="text-normal">产品分类</span>
								</a>
							</li>
							<li>
								<a href="#">
									<b class="sidebar-icon"><img src="/shopping/Public/Admin/Images/icon_order.png" width="16" height="16" /></b>
									<span class="text-normal">添加商品</span>
								</a>
							</li>

						</ul>
					</div>
					<div class="sidebar-nav sidebar-nav-fold">
						<div class="sidebar-title">
							<a href="#">
								<span class="icon"><b class="fl icon-arrow-down"></b></span>
								<span class="text-normal">订单管理</span>
							</a>
						</div>
						<ul class="sidebar-trans"style="overflow: hidden; display: none;">
							<li>
								<a href="<?php echo U('Order/index');?>">
									<b class="sidebar-icon"><img src="/shopping/Public/Admin/Images/icon_order.png" width="16" height="16" /></b>
									<span class="text-normal">订单管理</span>
								</a>
							</li>
							<li>
								<a href="#">
									<b class="sidebar-icon"><img src="/shopping/Public/Admin/Images/icon_order.png" width="16" height="16" /></b>
									<span class="text-normal">评价管理</span>
								</a>
							</li>
						</ul>
					</div>
					<div class="sidebar-nav sidebar-nav-fold">
						<div class="sidebar-title">
							<a href="#">
								<span class="icon"><b class="fl icon-arrow-down"></b></span>
								<span class="text-normal">优惠券管理</span>
							</a>
						</div>
						<ul class="sidebar-trans"style="overflow: hidden; display: none;">
							<li>
								<a href="#">
									<b class="sidebar-icon"><img src="/shopping/Public/Admin/Images/icon_order.png" width="16" height="16" /></b>
									<span class="text-normal">优惠券列表</span>
								</a>
							</li>
							<li>
								<a href="#">
									<b class="sidebar-icon"><img src="/shopping/Public/Admin/Images/icon_order.png" width="16" height="16" /></b>
									<span class="text-normal">添加优惠券</span>
								</a>
							</li>
						</ul>
					</div>
					<div class="sidebar-nav sidebar-nav-fold">
						<div class="sidebar-title">
							<a href="#">
								<span class="icon"><b class="fl icon-arrow-down"></b></span>
								<span class="text-normal">拼团管理</span>
							</a>
						</div>
						<ul class="sidebar-trans"style="overflow: hidden; display: none;">
							<li>
								<a href="#">
									<b class="sidebar-icon"><img src="/shopping/Public/Admin/Images/icon_order.png" width="16" height="16" /></b>
									<span class="text-normal">拼团列表</span>
								</a>
							</li>
							<li>
								<a href="#">
									<b class="sidebar-icon"><img src="/shopping/Public/Admin/Images/icon_order.png" width="16" height="16" /></b>
									<span class="text-normal">拼团订单</span>
								</a>
							</li>
							<li>
								<a href="#">
									<b class="sidebar-icon"><img src="/shopping/Public/Admin/Images/icon_order.png" width="16" height="16" /></b>
									<span class="text-normal">添加拼团</span>
								</a>
							</li>
						</ul>
					</div>
					<div class="sidebar-nav sidebar-nav-fold">
						<div class="sidebar-title">
							<a href="#">
								<span class="icon"><b class="fl icon-arrow-down"></b></span>
								<span class="text-normal">秒杀管理</span>
							</a>
						</div>
						<ul class="sidebar-trans"style="overflow: hidden; display: none;">
							<li>
								<a href="#">
									<b class="sidebar-icon"><img src="/shopping/Public/Admin/Images/icon_order.png" width="16" height="16" /></b>
									<span class="text-normal">秒杀列表</span>
								</a>
							</li>
							<li>
								<a href="#">
									<b class="sidebar-icon"><img src="/shopping/Public/Admin/Images/icon_order.png" width="16" height="16" /></b>
									<span class="text-normal">秒杀订单</span>
								</a>
							</li>
							<li>
								<a href="#">
									<b class="sidebar-icon"><img src="/shopping/Public/Admin/Images/icon_order.png" width="16" height="16" /></b>
									<span class="text-normal">添加秒杀</span>
								</a>
							</li>
						</ul>


					</div>
					<div class="sidebar-nav sidebar-nav-fold">
						<div class="sidebar-title">
							<a href="#">
								<span class="icon"><b class="fl icon-arrow-down"></b></span>
								<span class="text-normal">专题管理</span>
							</a>
						</div>
						<ul class="sidebar-trans"style="overflow: hidden; display: none;">
							<li>
								<a href="#">
									<b class="sidebar-icon"><img src="/shopping/Public/Admin/Images/icon_order.png" width="16" height="16" /></b>
									<span class="text-normal">专题列表</span>
								</a>
							</li>
							<li>
								<a href="#">
									<b class="sidebar-icon"><img src="/shopping/Public/Admin/Images/icon_order.png" width="16" height="16" /></b>
									<span class="text-normal">添加专题</span>
								</a>
							</li>
						</ul>
					</div>
					<div class="sidebar-nav sidebar-nav-fold">
						<div class="sidebar-title">
							<a href="#">
								<span class="icon"><b class="fl icon-arrow-down"></b></span>
								<span class="text-normal">商城设置</span>
							</a>
						</div>
						<ul class="sidebar-trans"style="overflow: hidden; display: none;">
							<li>
								<a href="#">
									<b class="sidebar-icon"><img src="/shopping/Public/Admin/Images/icon_order.png" width="16" height="16" /></b>
									<span class="text-normal">基本信息</span>
								</a>
							</li>
							<li>
								<a href="#">
									<b class="sidebar-icon"><img src="/shopping/Public/Admin/Images/icon_order.png" width="16" height="16" /></b>
									<span class="text-normal">支付方式设置</span>
								</a>
							</li>
							<li>
								<a href="#">
									<b class="sidebar-icon"><img src="/shopping/Public/Admin/Images/icon_order.png" width="16" height="16" /></b>
									<span class="text-normal">快递设置</span>
								</a>
							</li>
							<li>
								<a href="#">
									<b class="sidebar-icon"><img src="/shopping/Public/Admin/Images/icon_order.png" width="16" height="16" /></b>
									<span class="text-normal">功能开启</span>
									<!--5.未支付订单超时设置
									设置时间(规定时间内未付款,自动取消订单)
									6.领券中心是否开启设置
									是/否(未开启不能使用优惠券)
									7.首页分类显示个数设置
									(首页显示几个分类)-->
								</a>
							</li>
						</ul>

					</div>
				</div>
			</div>
			
    <div class="view-product">
        <div class="info-center">
            <div class="manage-head">
                <h6 class="padding-left manage-head-con">修改管理员</h6>
            </div>

            <div class="layui-container" style="margin-top: 20px">
                <div class="layui-row">

                    <div class="layui-col-md5 layui-col-md-offset1">
                        <form class="layui-form" action="<?php echo U('User/admin_editdo');?>" method="post">
                            <div class="layui-form-item">
                                <input type="hidden" name="id" value="<?php echo ($res['id']); ?>">
                                <label class="layui-form-label">管理员</label>
                                <div class="layui-input-inline">
                                    <input type="text" name="name" required  lay-verify="required"  autocomplete="off" class="layui-input"value="<?php echo ($res['name']); ?>">
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">密码</label>
                                <div class="layui-input-inline">
                                    <input type="password" name="pwd" required lay-verify="required" autocomplete="off" class="layui-input"value="<?php echo ($res['pwd']); ?>">
                                </div>
                                <!--<div class="layui-form-mid layui-word-aux">辅助文字</div>-->
                            </div>

                            <div class="layui-form-item">
                                <label class="layui-form-label">电话</label>
                                <div class="layui-input-inline">
                                    <input type="text" name="tel" required  lay-verify="required"  autocomplete="off" class="layui-input"value="<?php echo ($res['tel']); ?>">
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">邮箱</label>
                                <div class="layui-input-inline">
                                    <input type="text" name="email" required  lay-verify="required"  autocomplete="off" class="layui-input" value="<?php echo ($res['email']); ?>">
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">级别</label>
                                <div class="layui-input-block">
                                    <input type="radio" name="type" value="1" title="普通管理员"checked>
                                    <input type="radio" name="type" value="0" title="超级管理员" <?php echo ($tn); ?>>
                                </div>
                            </div>


                            <div class="layui-form-item">
                                <div class="layui-input-block">
                                    <button class="layui-btn" lay-submit >立即提交</button>
                                    <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                                </div>
                            </div>
                        </form>

                    </div>
                </div>
            </div>
            <script>
                //Demo
                layui.use('form', function(){
                    var form = layui.form;

                    //监听提交
                    form.on('submit(formDemo)', function(data){
                        layer.msg(JSON.stringify(data.field));
                        return false;
                    });
                });
            </script>

        </div>
        <div class="show-page padding-big-right hidden">
            <div class="page">
            </div>
        </div>
    </div>


		</div>

		<script>
			$(".sidebar-title").live('click', function() {
				if ($(this).parent(".sidebar-nav").hasClass("sidebar-nav-fold")) {
					$(this).next().slideDown(200);
					$(this).parent(".sidebar-nav").removeClass("sidebar-nav-fold");
				} else {
					$(this).next().slideUp(200);
					$(this).parent(".sidebar-nav").addClass("sidebar-nav-fold");
				}
			});
		</script>
	</body>

</html>